<?php
class Impact_View_Helper_FormatUtcDbDate
{
    public function formatUtcDbDate($dbDate, $format)
    {
        $date = new Zend_Date();
        $date->setTimezone('UTC');
        $date->set($dbDate, Zend_Date::ISO_8601);
        $date->setTimezone(date_default_timezone_get());

        return $date->toString($format);
    }
}

// vim: sw=4:ts=4:sts=4:et
